package game.util.sosc;

import java.io.PrintWriter;
import java.io.StringWriter;

public class ThrowableConverter implements IStringObjectStringConverter<Throwable>
{
    @Override
    public Throwable toObject(String string)
    {
        throw new NoSuchMethodError();
    }

    @Override
    public String toString(Throwable object)
    {
        StringWriter out = new StringWriter();
        object.printStackTrace(new PrintWriter(out));
        return out.toString();
    }
}
